package cn.com.api.mapper;

import java.util.LinkedList;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import cn.com.api.entity.ApiSpeicalChang;
import cn.com.api.entity.ApiT_goods_topic;
import cn.com.api.mapper.base.T_goods_topicMapperBase;
import cn.com.util.PageInfo;

//DAO
public interface ApiT_goods_topicMapper extends T_goods_topicMapperBase {

	// 新增对象后返回记录ID
	public int T_goods_topicInsertion(ApiT_goods_topic t_goods_topic);

	public List<Map<String, Object>> getAllGoodsTopic();

	public List<Map<String, Object>> getAllTypes();

	public List<Map<String, Object>> getTopicByCondtionListPage(
			@Param(value = "typeId") String typeId,
			@Param(value = "time") String time,
			@Param(value = "currentDate") String currentDate,
			@Param("page") PageInfo page);

	public LinkedList<Map<String, Object>> getTopicByTypeId(String typeId);

	public List<Map<String, Object>> getGoodInfoByTopicId(
			@Param(value = "topicId") String topicId,
			@Param(value = "name") String name,
			@Param(value = "from") int from, @Param(value = "to") int to);

	public ApiT_goods_topic getTopicByTopicId(String topicId);

	public void updGoodsTopic(ApiSpeicalChang apiT_goods_topic);

	public void delGoodsTopic(String topicId);

	public List<String> getInActiveGoods(
			@Param(value = "goodId") String goodId,
			@Param(value = "topicId") String topicId);

	public String getDiscountByTopicId(String topicId);

}
